import argparse
import os
import platform

from task_base import TaskStatus
from task_err import Taskerr

def get_task_list():
    result =[
        {TaskStatus(), Taskerr()}
    ]
    return result

def get_rg_path():
    script_dir = os.path.dirname(os.path.abspath(__file__))
    if platform.system() == "Windows":
        return os.path.join(script_dir, 'rg', 'rg.exe')
    else:
        return os.path.join(script_dir, 'rg', 'rg')


def parse_arguments():
    parser = argparse.ArgumentParser(description="f for log2time")
    parser.add_argument('-f', '--filters', type=str, required=True, help='get tasks, spilt by comma')
    parser.add_argument('target', type=str, help='target file or dictory')

    args = parser.parse_args()
    return args.filters.split(','), args.target

def main():
    filters, target = parse_arguments()

    t = get_task_list()

    dsadsad =9 


if __name__ == "__main__":
    main()
